package com.lazily.interface_.advantage;


/**
 * @Author: GZQ
 * @date: 2025/2/10 23:36
 * @description: 接口的好处
 */

public class Interface03 {
	public static void main(String[] args) {

		MysqlDB mysqlDB = new MysqlDB();
		test(mysqlDB);

		OracleDB oracleDB = new OracleDB();
		test(oracleDB);
	}

	public static void test(DBInterface db) {
		db.connect();
		db.close();
	}
}
